﻿<UserControl x:Class="HttpSysManager.CertificateListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             xmlns:local="clr-namespace:HttpSysManager"
             d:DesignHeight="300" d:DesignWidth="300">

    <DockPanel x:Name="root">
        <GroupBox Header="{Binding Label}">
            <DockPanel DockPanel.Dock="Top">
                <local:HyperlinkButton DockPanel.Dock="Top" Click="AddClick" HorizontalAlignment="Right" Text="Add"></local:HyperlinkButton>
                <ListView x:Name="list" MinHeight="50" ItemsSource="{Binding ItemsSource, UpdateSourceTrigger=Explicit}" DockPanel.Dock="Top">
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Converter={StaticResource CertificateNameConverter}}"></TextBlock>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
            </DockPanel>
        </GroupBox>
    </DockPanel>

</UserControl>
